feat(dotAI): Dot AI LangChain4J - Azure OpenAI#35243
Draft
ihoffmann-dot wants to merge 91 commits intomainfrom
Draft
feat(dotAI): Dot AI LangChain4J - Azure OpenAI#35243ihoffmann-dot wants to merge 91 commits intomainfrom
ihoffmann-dot wants to merge 91 commits intomainfrom
Conversation
…lableModels from AIModels
5 tasks
…s to avoid parse errors in non-streaming requests
…, dead param, equalsIgnoreCase)
…ide, cache key sentinel
…ns param, replace sha256Hex with DigestUtils
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Azure OpenAI as a supported provider in the LangChain4J integration layer.
Enterprise customers using Azure-hosted OpenAI deployments can now configure
dotAI without any code changes — only a
providerConfigJSON update is required.langchain4j-azure-open-aidependencyazure_openaicase toLangChain4jModelFactoryswitchbuildAzureOpenAiChatModel,buildAzureOpenAiEmbeddingModel,buildAzureOpenAiImageModelLangChain4jModelFactoryTestConfiguration
{ "chat": { "provider": "azure_openai", "apiKey": "...", "endpoint": "https://my-company.openai.azure.com/", "deploymentName": "gpt-4o", "apiVersion": "2024-02-01", "maxTokens": 16384, "temperature": 1.0 }, "embeddings": { "provider": "azure_openai", "apiKey": "...", "endpoint": "https://my-company.openai.azure.com/", "deploymentName": "text-embedding-ada-002", "apiVersion": "2024-02-01" }, "image": { "provider": "azure_openai", "apiKey": "...", "endpoint": "https://my-company.openai.azure.com/", "deploymentName": "dall-e-3", "apiVersion": "2024-02-01" } }Notes
deploymentNameis required for Azure (differs from model name). Falls back tomodelif not set.apiVersionmaps to Azure'sserviceVersion. Recommended: 2024-02-01.Related Issue
This PR fixes #35183
EPIC: dotAI Multi-Provider Support #33970